package com.atguigu06.polymorphism;

/**
 * ClassName: Ma
 * Package: com.atguigu06.polymorphism
 * Description:
 *
 * @Author ZY
 * @Create 18:59
 * @Version 1.0
 */
public class Man extends Person{
    boolean isSmoking;

    int id = 1002;

    public void eat(){
        System.out.println("男多吃，长肌肉");
    }

    public void walk(){
        System.out.println("男笔挺的走路");
    }

    public void earnMoney(){
        System.out.println("男赚钱");
    }
}
